package com.blb.community_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blb.community_admin.entity.ZyUnit;

import java.util.List;

public interface ZyUnitMapper extends BaseMapper<ZyUnit> {
    /**
     * 通过buildingName查询对应单元
     * @param buildingName
     * @return
     */
    List<ZyUnit> selectUnit(String buildingName);
//分页
    IPage<ZyUnit> selectUnitPage(IPage<ZyUnit> page);

    //模糊查询分页
    IPage<ZyUnit> fuzzyPage(IPage<ZyUnit> page, String unitName, String unitCode, String buildingName);
}
